package jp.co.cos.ittrick.channel.controller.admin.file;

import jp.co.cos.ittrick.channel.service.FileService;

import org.slim3.controller.Controller;
import org.slim3.controller.Navigation;

public class DeleteController extends Controller {

	private FileService service = new FileService();

    @Override
    public Navigation run() throws Exception {
    	String pkKey = asString("key");
        service.delete(Integer.valueOf(pkKey));
        return redirect(basePath);
    }

}
